mem_ptr_t replaced