hash table not working right. about to try dynamic array instead