rename to prettyPrintData(), add criteria param