tree contruction