added header check method