fixed capacitor code, added analyse data