add CdC func when if fail to cd