update with local storage