output category tree.