array indices should be multidimensional