removed defaultdict