implemented traversal of candidates