new approach to tree rendering