update header in advance :)