modify add_address for hash table