converted back to [foo] indexer syntax and removed implicit key variable from ForStatememt