change pend to pendulum