check for matches