convert pointers to unique