loop over snps