updated SNP code from 141105