changed call to log_prob in bfgs