removed use of localstorage