how did we find the distance ?