convert to local storage