updated to local storage