improved convergence test