working out negative diffs