How trench tragedy should have been avoided