remove trailing whitespace (and use codex)