change save data method