changed location for logging sleeping