changes to dict2pretty