update block code