added code_gen for applicTC