REWRITE