added delay variable to waves