eliminate unnecessary diff