How to use "replacing" in a sentence

Sentences

"Mom, why can't they just use people instead of replacing them with robots and nanobots all the time?" Suddenly, Sala felt more angry than upset