overflow handling for code blocks