modify bsearch trivial case