added repeat for waves