replace  with the more general findMatches helper that takes a partial ID