grouping system based on chat