It is no longer a secret for a modern person that thoughts reproduce space. Because they give us a vector for movement. Basically, this happens in an unconscious way, because not everyone is addicted to the psychology of thinking. But once you learn about the secrets of our mind mechanism, you will be able to control your reality.
The first thing to learn is discipline. You must retrain yourself in small steps from unnecessary illusions. Follow your flow of thoughts and observe them. Negative, dirty, harmful, etc. thoughts distort our attention to a healthy attitude towards life. This is why it takes effort and patience to get them out of your head. Gradually, by such actions, you will accustom your mind to think only about useful things. As a result of this developed habit, create a positive reality in your life.