Changing iterator variable name to avoid redefining in later methods