change data to save in local storage