loop variable declared locally