add animation code