removed old code, fixed binary search on an empty view