changes to search.py