update code blocks