have add old pwm code