update to plot4