removed global struct for hashtable