some buggy dsp routines