add block code