fixed up animation code