change variable name maxIters to numIters for consistency