Before we sleep, our brain receives a lot of information from our daily activities. Our brains are filled with hundreds of thousands and even millions of information every day. Start simple things like the color of the car passing in front of us and the color of the clothes of our co-workers. This can also be a heavy matter such as conflict, problems, and workload in the office.
The brain functions to sort out all that information and decide what to save and what to forget. Some researchers think that this process is played through dreams. When we wake up, the brain works hard to provide connections so that our bodies function properly. What we face on that day will affect our sleep. For example, during the day we are faced with a difficult mathematical problem, the brain will be very focused on it.
We are very focused on one sad problem that day, the possibility of us dreaming it at night is huge. Also remember, that the brain not only functions so that the body functions properly connected, the brain also functions mental and feeling functions.