Can you use `map!.with_index` here?