add preamble