minimize the diffs