made local storage saving