made the phenotype selection a variable