clean up path animation code