loop extended: multidimensional arrays as source