inv() for Doctor.obj