for loop for stats