fixed trailing \n format in code