added raw binary search