improve save and load data process