add id_func for nt/ed