added custom version of pprint for testing