included checkConvergence method, but not used yet