printing of constructed tree