added diff calculator