The 12th Amendment to the US Constitution changed the process for electing the president and vice president. It was ratified in 1804 to address problems that arose in previous elections. Under the new system, electors cast separate ballots for president and vice president. If no candidate wins a majority, the House chooses the president and Senate chooses the vice president from the top candidates. The amendment has been used in every presidential election since 1804.