change the quitting criteria for line search