improve WaveFile