update the pretty printer.