now terminate upon convergence
fixed objective function