merging headers