updated animation method