added code to deal with phenotype_complete feature