updated cdec snippet