need to change the comparison for binsearch