use temporary buffer for output