one function of variable resistor