find min diffs