added diff distances