fixed last array dimensionality issues