use content-type/type switch