Why did delegates gather in 1787 for the Constitutional Convention?

to amend the Articles of Confederation
to authorize the declaration of war
to elect the U.S. President
to sign the Declaration of Independence