project rewrite