How did I change my bad habits?

How did I change my bad habits?