finish the idt part