renamed wave code