made some changes in my research code.