function topMatches