a bit of work on copyPointer