A->B helps B->A implement with hash_map