removed memory leak with wave-display