add diff computations