could we break the loop once we know there a match?