added printTreeOutside