add function for dsp process