pretty printing function now private again