respect the value of maxPolicyIterations