added some stuff to pendulum