introduce detail directive that recursively print the tree elements