pattern set can now limit the number of each categry to the min in the set