fixed animation to start from beginning animation
extract method