beautify binSearch