adding distanceSq