update array2D