modify grouping method error