add block code snippet