implemented hashtabs