replace code block