used local storage get and set methods