format detail headers