passes root to the conuntTree, adds different while loop condition as comment and apt pritTree arguments