added method to get iterations until convergence