add step checking for animation