finish prediction for the c implementation (minor error in accuracy)