Fix syntax error in previous commit

undefined method `with_index' for .. Array
And maybe remove all this other stuff like the map and the ```join```at the assignment...