init variable every loop