working on the waveform display