unify use of candidate and selected sets