correct header copying