added process_data_fn.R