deal with the plotting section