added storing of resistors