change for in to forEach