remove forest copier using pointers