The Buddha is saying that we made the circumstances we find ourselves into them by all the deep-seated ways of thinking that led us into the actions, plans, behavior, and situations whose sum total is our lives.
But our destiny is in our own hands. Since we are formed by our thoughts, it follows that what we shall be tomorrow is shaped by what we think today.
Happily, we can choose the way we think. We can choose our feelings, aspirations, desires, and the way we view our world and ourselves. Mastery of the mind opens avenues of hope. We can begin to reshape our life and charecter, rebuild relationships, thrive in the stress of daily living become the kind of person we want tp be.