changed conditions in line search