modifying dampedbfgs