fixing new lines at EOF