fix 2d array