added possibility to change the animation