small modifications in the loci filtering