added other conditions in confusion matrix