improvement on adaptive header