I finished the pbdb_map_effort function