updated animation code