add frame modulate and demodulate