update text type