finish coding the data processing file