add the plot function reset