rewrite rewrites