differentiate between main and sub categories