make linking candidate selection deterministic