change generate_plots