modify setAnimate function
modify files