adding distance similarity and addScaled