made some changes to hashtable so it resizes