deal with the data from temp db which work for data quality