pwm works now