fixed prediction error in computeD