reorder file saving