pwm debugging in progress