On stratification grouping and matching