checking for all sub categories