clean up preamble