dreaming is a form of planning