Loving myself???

I think I just had an ah-ha moment. I’ve been working on loving myself. I’ve spent a lot of time hating the parts of me that I don’t like, thinking I should not be that way, and working on not being that way. But instead of trying so hard to not be, say… judgemental… I need to love the part of me that IS judgemental. Am I on the right track?