added function to deal with short genotypes