add comment to animation code