changes to plot2d