process the data