edit category type to CategoryType