reset saveData function