update text formatting