changed grouping method for seq/struct comparisons