grouping mechanism and column-based