start buildTree dynamic