get rid of warning messages due trailing newline