grouping of common code patterns