change animation loop