abstract a partion for the categories