clean up the animation computing code