macro to plot final results