fixed so that assigning alleles now works correctly