commit for enhanced for loop or each loop