set items outside the loop