Simple fix, be better than the guy from another country
Doesn't work like that. Crapitalist companies only care about how much money they gotta pay out. Other guy doesn't speak English,is worse at their job etc as long as it costs the company less money they will keep them and get rid of you. The sooner this shithole country collapses the better...gonna be a LONG few months of trials for treason for politicians.
Then start your own company, and see what it is like hiring Americans verses foreigners.
Look here's the problem.... I've met Americans. Many are fantastic. I personally, work my butt off. Every day. I know many like me, that are go getters.
However... whether you want to admit this or not, there are a ton of garbage Americans, that want to come in, do as little as possible, and leave just as quickly. I'm dealing with this right now.
I have a guy who is one of our server IT support techs. We have a server that has failed to function properly for TWO FULL MONTHS.... and he comes in at 10 AM... and farts around.... and then leaves at 5 PM, and if the server isn't running... oh well... too bad... so sad.
Meanwhile, I have customer orders that are delayed, and managers getting mad, and people are pointing fingers.
American.
Now I have a guy from Bangladesh, who was a roommate. He worked from 7 AM until 6 PM, went to a work out facility for 1 hours, came home, and would remote into work, and keep working until 10 PM to 11 PM, get some sleep, and go back to work.
He just landed a job paying $120K, plus moving expenses, and 3 weeks vacation a year.
Meanwhile the American is paid $35K, and is likely to be replaced, and I wouldn't be surprised if he was replaced by an Indian.
That is the answer. The reason Americans are replaced by Indians is because they are not competitive with Indians. They want to put in as little effort as possible, and do as little work as they can, and leave as early as possible.... and then complain when they are replaced by flat out better people.
I've seen this first hand, for 20 years now. Foreigners work their assess off, and have a better American work ethic, than Americans.
When Americans are better employees than foreigner, they'll start replacing foreigners. Until then, stop your whining.
And BTW... it isn't just Indians. You are picking on Indians because you can visually see they are Indian. The reality is, this is true everywhere. I worked at a company, where their top, senior hardware engineer, was a Russian. He had a thick Russian accent, but he worked his butt off. Half of all the patents the company owned, were due to that Russian guy. And unsurprisingly, all the rest of the Engineering department complained about that Russian guy getting paid all the money, and had all the attention of management.
They whined and cried about that Russian guy, but at 5 PM, they were a blur heading to the door, while that Russian was in the back still testing his crap.
And the same was true at another company, where the head guy was a German native. Exact same situation. Everyone was bawling their eyes out over this foreigner taking their jobs, and the reality was, he put in twice the effort they did.
If you find your dumb butt being replaced by a foreigner, then you need to waddle your fat butt home, find the nearest mirror, and look yourself in the eyes and say "I was replaced because I suck. What can I do to stop sucking?".
That's where the problem is. Either take another class to advance your skills, or just flat out put in more time and effort into your job. Either make your skills more valuable, or make the skills you have more useful by putting in more time.
But don't give me your endless excuses about foreigners replacing you, because that just means they are better than you, and that's your fault. Period.