improved error processing in DPCM