updated pretty print