proper tree printing