more changes to pwm