print tree per level