discharging of capacitor