added plot_close