adjust search of the position