adding pwm sample