fixing binary search
woops