minimal change to LBFGS