modified cdc_main.c