i-variable changed to nonglobal