clear output only when active