subsets and permutations added