updates to plot4