updated ROC function