The mind becomes purified by the cultivation of Amity, Compassion, Goodwill & Indifference respectively towards Happy, Miserable, Virtuous & Sinful creatures.
These thoughts helps in cleansing the mind &mind becomes pure. A purified mind becoming one pointed eventually attaints serenity.
Gain these four virtues in your life.