rewrite define