add dkc_generate in generate.c