changes to diffing script