a different approach with wave2.html