implemented getPointer