template the headers