code changes to calculate both TPR and FPR for ROC Analysis