added most of the verlet stuff