Corrected data type for loop 9