1D array opt finished