tree working; issue was vector deleting object while in object