update research code