local storage functions have been added