sleeping is done in periods of time