use directly the defaultdict constructor