working PID controller