fix error defining code block