Capacitor function and effect