rm check on match, keep logic in first loop then break