refine categories