make prettyPrinter() simple