modify save script