controlling the wave