added header comparison method