update plot3 and 4