fix each to forEach