refactored ROC plot and cont_plot