check the groups match