Replaced another enchanced for loop