bring back greedy matching