Changed from for to forEach