add tree search