add the new line to end of file