add output at the end of the pass