clean up code blocks