process file