Dreaming is also planning the future