added diff api