add new lines and EOF