fixed the animation class