basic code for snc