added confusion matrix for masks