finished most of grouping