makes findDiffs method more scala like