fixing up animation loop issues