Put type into separate attribute