update code block