update distance calculator