updates to pretty_printer