sleep is used to mimic that