add enhanced for loop cal