added pwm vars