In the second half of the 19th century, the coming of mass production and new technologies, such as the Minie ball, allowed European armies to gradually equip all their infantrymen with rifled weapons, and the percentage of line infantry equipped with muskets fell. In the American Civil War, both Northern and Confederate armies had only a few line regiments equipped with the old-style smooth-bore muskets. However, France, due to Napoleon III, who admired Napoleon I, had 300 line battalions (comprising an overwhelming majority) even in 1870. Although the French line infantry received Chassepot rifles in 1866, it was still being trained in the use of close formations (line, column and square), which was changed only after the dethronement of Napoleon III. This was common practice in all conventional Western armies until the late 19th century, as infantry tactics and military thinking had yet to catch up with the new technological development.