adding macro to plot reso