add waveform fit