add the option to plot the data or not