changed PWM limit and added new param