add new line character at end of header