newline before and after loop