deleted unnecessary for loop