to commit the file