forEach for multidimension