set_resistor now working