change output to buffers