grouping, mostly done