reproduced plot2