reduced scope of loop vars