added non-working predictor-corrector function