fixing 1D array