clean up code for tween animations