make iteration variable private