update diff table