improve calculation of number of iterations for hand enum