tree building methods