check convergence