merge headers