adding more macro for plotting