switch to densemap for pointer->word map.