The making of the president