You can use `data.each{|d| ...}` here instead of data.map, since the return value is not used.