write_ptr