simplize _getHeader method