renamed canidate to candidate