added plot3 construction