Improving tree construction