formating file