AC_DC.c modified