rewrite header