fixed the hash map