fix text formatting