added a distance field

added a "distance" field.