update header offset