add calcMeanAccuracyCode