update diff script and update var name