implemented cell selection in pcandidates