finish animation
delete some code useless