initial work of hashmap