working on reading to localstorage