increase iterations only when needed