modified global-hashmap.c