optimizing the header load