I think we want to say `event.candidate` instead of just `candidate` here.