adding struct and hash table