clean up for plot_summary