update plot3 and plot4