working on pendulum