added a function to extract snp name pairs