grouping snippets