Replace the array for a set