new grouping method implemented