print tree path