update header
update stack