making Selection and Group iterable
cleaned up Group and selection relationship