add a line search