added storing of capacitors