text type switch