modified the input and output of dpc_modules.py