Modify dodai to fit the code at NII

Modify dodai to fit the code at NII