rewrites text and improves vertical white space