update code for ood