moving loci overlaps function to trait