updating animation