removed second declaration for tree