change cancelcountedwake to make a better example