generateSubsets added