added one more for loop style