updated boundary conditions on search.