improve pretty print