made some changes into doctor