gets updated from the local storage