sleep event implemented