tremendously simplified the search algo
something