don't overwrite cells and include nan in np.array