fixed typo
adding pruneCandidates