finish file