delete the plot function