adding new line at the end of file