a small bit of animation code cleanup