another improvements to pretty print