separated out fPlotCDF