update binarysearch