combine code blocks