pwm working and tested