design doc for tree