macro for toggling output