rewrite using plaintext newlines for readability