get header fields method