add recent changes of bfgs