table tree construction