mods to the plotting routines for the correct vals to plot