adding waveform