join code with newline when done