cleanup to shrink the diff