function get_cds