wrote things to make hashtable