adding code to select genotypes