added simple PWM controll