second commit, fixed findPairs