working on pprint matrix fns