fixed btree search