improve coalescing for multiple matches