fixed the for loop in createGA