make wait boolean