should have fixed localstorage problem