Localized scope of variables to the loop