update binsearch, add 3-1