modified to plotter to take up less resources and allow the gui to be more responsive