how about acc[TAG].keys.each do |tag|