cleaned up prettyprint