updated plotter functions