finish implementation of transferPointer