same problem as before: can't add a new key into hash during iteration