adding attribute to candidate