render a tree