reverse pendulum now working