change attribute name to more consistent category instead of type