revert rewrite