process_upset_data function

process upset data