slightly adjust diff to give signed results