changing search to run faster (maybe)