header line logic