added header processing code