set local storage on loc