dict map and fold done.