removing pointers from map keys