added 2nd pwm