1. waking up when it ends