fix communication between search tree and tree