cleaned updateHeader