cleaned up preprocess_CNA_file method