added pwm limit