snp search function implemented