ccd directory creation code added