vars outside the loops