adds the material type (category) to the material