changing animation method.