better maxDelta