Replace a map by a forEach.