added average waveforms