range based for loops work on 1D arrays