set confustion matrix and almost cleared to construct dataset