However , a combination of entrenchments , machine gun nests , barbed wire , and artillery repeatedly inflicted severe casualties on the attackers and counterattacking defenders .
However , a combination of entrenchments , machine gun nests , barbed wire , and artillery stopped these advances before any major damage could be done to the opposing forces .