Donald Trump has apparently changed his military policy. He has also reversed his position on immigrants.

The Republican frontrunner said he would not allow the US military to break international laws. His comments come after a number military experts and legal authorities criticised him for his policy of killing members of terrorist families. According to them, such things will violate the Geneva Conventions.

Trump said in December that he would kill families of ISIS militants to win the battle against them. “When you get these terrorists, you have to take out their families,” he told Fox News. “They care about their lives, don’t kid yourself.”

Trump has now reversed his position on “taking out” the families. He said he would use “every legal power” to stop the terrorists. “I do, however, understand that the United States is bound by laws and treaties and I will not order our military or other officials to violate those laws and will seek their advice on such matters,” he said in a statement to The Wall Street Journal.

The real estate businessman also shifted from his take on immigrants. He referred to H-1B visas, given to skilled immigrants, and said American would need such people. “I’m changing. I’m changing,” Trump said during the GOP debate on Thursday. “We need highly skilled people in this country; one of the biggest problems we have is people go to the best colleges. As soon as they’re finished, they’ll get shoved out.”

However, just an hour before the debate, a statement from his campaign read that he would “end forever the use of the H-1B as a cheap labour program” with no exceptions.

Trump also defended H-2B visas, which allowed his private club in Florida to hire unskilled immigrants on a seasonal basis. He said American people would not prefer short-term jobs. That is why immigrants should be brought in for temporary jobs and then sent out when the job is done, he said.