renamed hold to pwm and started working on the pwm