Semantics of grouping