finished grouping by topic