update hasmap_init