switched to forEach