rewrote verlet