add added functionality of animation, curved