finish rewrite onece