changed maps to forEach