update header weight