add line_search parameter to turn off line_search