You will always choose in the direction of what you believe is more pleasurable and move away from the direction you believe is more painful.
So in a situation where you know that you act differently than you want to, give you a moment of pause and ask yourself:
“What would I have to believe is true for me to react to the situation the way I did?”
This will transform your belief system and thus your personality and thus your life.