another modification to the search functions file so that it won't give a CRS error