save. indexlist needs to be modified.