preparing for pretty tree printing