fix pprinting of hierarchy