updating canddi code