Capacitor charging current depends on