updated for legacy_phenotype_status