text rewrite