refactored table header access