working ROC curve code