removed unnecessary for loop in generateData