loop with indexer