common preprocessing in CCNC