check error on spread function for decoding too