modify wait conditions