changes to plot_scan_PEST