modify anim logic