combine adjacent code blocks