improved debugging of deltas
fixed wrong delta