added tree stuff