modify the setHeader sequence