call wrapPointer