add main tree