fix compilation error occurs when calling prettyPrint w/o argument