added cdc function