According to Mendel’s first law of inheritance, segregation of genes occur when