make deltas a bit more robust to pathological input