added get header function