working on getCandidates