slight modif for dsp write