editing the convergence algo