flushing output stream