testing again and using for loop