removed sub types and added a category attribute in type.