reinstate ncategories for Categorical