added prettyPrint