smarter padding for the waveforms