declare variable outside for