var i is global, right?