working on the hashmap