refactor describeMatches for testability