fix my flawed attempt to recompute the delta