set local storage for loop