added sleeps to detect people