updated process_diff.sql