map isn't ideal here.changed to forEach like it should be