rewrite the preamble