update header length