change wait condition