first try of corespondance grouping