fixed newline issue at the end of the file