added in demodulator