edit search function - search-location
halfway done with update command