no need for counter variable in for loop