subsets 2 code works for subsets.