remove writing to output stream