output txt for cpd