added getSubsets