finish port add to_hash