fixing pretty print