reproduced plot3