final version plot3