updated the wait