improve text formatting