rewrites text