some work on copyPointer