finishing up the file