added code for knob pot.