rewrite te