rewrite animation