The effect of going to sleep is dreaming