start wave functionality