optimize the output of plain text