That and Hillary had no response to use of her home brew email server and how it was used for some classified emails.  Also it didn't help Russians hacked Wasserman Schulz and Podesta's email in which they verified that fix was in to make HIllary the Demo candidate over Bernie Sanders using super delegates and strong arm tactics.  Add how Bill Clinton meet with then AG Loretta Lynch in a private plane where all other people had to leave the plane and the two just talked among themselves.  In the last year of Obama's term, Lynch never did indict Hillary as was Gen. Petraeaus was indicted/convicted for similar handling of top secret information.  Also FBI director Comey definitely sealed Hillary's loss with publicly releasing a memo allegedly linking Weiners emails with Hillary Clinton which turn out to have NO link.  Comey gave Trump a gift and as a reward Comey gets to stay on as FBI director.    Ultimately, Hillary was a FLAWED candidate, at or beyond Trump, that deserved to lose.