added DSP code