adding new lines at the end of file