added getPointer method