consolidating matches