arrange code blocks