moved distance calcs to services