restructure code block layouts