add extrapolation in forwardbackward