add option for convergence