complete the file