adding tree construction prelim