adding search distance