He also helped ensure that the president of the United States would have the ability to veto federal laws and would be elected independently of Congress through the Electoral College. By the end of the convention, Madison believed that the new constitution failed to give enough power to the federal government compared to the state governments, but he still viewed the document as an improvement on the Articles of Confederation.