pushed confusion matrix to optim;