change some animation code