another change in wait function