improve prettyprint